﻿using CacheAOP_AspectCore.AOPCache;
using System;

namespace CacheAOP_AspectCore.BLL
{
    public class DateTimeBLL : ICaching
    {
        /// <summary>
        /// 在方法上加入缓存特性
        /// </summary>
        /// <returns></returns>
        [RedisCache(CacheKey = "timeBLL", Expiration = 10)]
        public virtual string GetCurrentTime()
        {
            return DateTime.Now.ToString();
        }
    }
}
